<section class="myprofile"> 
	<div class="container"> 
		<div class="row">
			<h2><?php echo __('Add listing');?></h2>  
			<div class="wrap_all_form box_profile">      
				<div class="padd_inner">
					<div class="profile_stats">
<?php
$isAjax = $this->params['isAjax'];
$javascript->link("/effects/js/jquery.form.js",false);
if(!$isAjax)
{
	echo $form->create("Listing",array("url"=>"/".$this->params['url']['url'],'id'=>"listing_form","type"=>"file"));
}
?>
<?php
echo $form->input("Listing.step",array("type"=>"hidden","value"=>$step));
echo $this->element("listing_forms/select_category");
?>
	<?php if($step >= 2 && AppUtility::allowPaidListing()){
		echo $this->element("listing_forms/select_plans",array("categoryIds"=>$this->data['Listing']['categories']));
	} ?>
	<?php if($step >= 2){
		echo $this->element("listing_forms/add_fields");
		
		echo "<div class='upload_filesize_limit_msg'>";
		echo sprintf(__("The total size of all the files uploaded should be less than %s", true), ((ini_get("post_max_size") < ini_get("upload_max_filesize"))?ini_get("post_max_size"):ini_get("upload_max_filesize")));
		echo "</div><div class='clear'></div>";
	} ?>
<?php
if(!$isAjax)
{
	echo $form->end(array('label'=>__('Save'), 'class'=>'bt_submit'));
}
?>
					</div><!--profile_stats--> 
				</div><!--padd_inner -->
			</div><!--/.wrap_all_form-->
		</div><!--/.row-->
	</div> <!--/.container-->
</section> <!-- /.hauptseite-->
